<?php /* Smarty version 2.6.18, created on 2010-08-28 14:08:50
         compiled from admin/alumni/general/list_intake.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'utf8_escape_html', 'admin/alumni/general/list_intake.tpl', 11, false),)), $this); ?>
<form name="frmListIntake" id="frmListIntake">
<table border="1" cellspacing="1px" cellpadding="10px "align="center" width="100%">
    <tr>
        <th width="15">#</th>
        <th>Intake name</th>
    </tr>
    <?php $_from = $this->_tpl_vars['arrIntake']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['nameIntake'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['nameIntake']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['keyIntake'] => $this->_tpl_vars['itemIntake']):
        $this->_foreach['nameIntake']['iteration']++;
?>
    <tr>
        <td><?php echo $this->_tpl_vars['keyIntake']+1; ?>
</td>
        <td>
        	<input type="text" size="70" name="intake_name_<?php echo $this->_tpl_vars['itemIntake']['id']; ?>
" id="intake_name_<?php echo $this->_tpl_vars['itemIntake']['id']; ?>
" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['itemIntake']['intake_name'])) ? $this->_run_mod_handler('utf8_escape_html', true, $_tmp) : smarty_modifier_utf8_escape_html($_tmp)); ?>
" />
          &nbsp;&nbsp;order sort
          <input type="text" size="5" name="intake_order_<?php echo $this->_tpl_vars['itemIntake']['id']; ?>
" id="intake_order_<?php echo $this->_tpl_vars['itemIntake']['id']; ?>
" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['itemIntake']['intake_order'])) ? $this->_run_mod_handler('utf8_escape_html', true, $_tmp) : smarty_modifier_utf8_escape_html($_tmp)); ?>
" />
        	<input type="button" value=" Update " onclick="javascript:updateIntake(this, <?php echo $this->_tpl_vars['itemIntake']['id']; ?>
)" name="btnUpdate<?php echo $this->_tpl_vars['itemIntake']['id']; ?>
" id="btnUpdate<?php echo $this->_tpl_vars['itemIntake']['id']; ?>
" />
        </td>
    </tr>
    <?php endforeach; endif; unset($_from); ?>
</table>
</form>
<form name="frmAddIntake" id="frmAddIntake" onsubmit="return checkFrmAddIntake(this)">
<table border="0" cellpadding="2" cellspacing="1">
	<tr>
  	<td>
    	Intake name: <input type="text" name="intake_name" id="intake_name" value="" size="50" />
      order sort: <input type="text" name="intake_order" id="intake_order" value="0" size="5" />
      <input type="submit" name="btnAddIntake" id="btnAddIntake" value=" Add " />
    </td>
  </tr>
</table>
</form>